package com.zhangyang.dubbo;

import org.springframework.stereotype.Service;

/**
 * Created by ASUS on 2017/9/1.
 */
@Service(value="orderService2")
public class OrderServiceImpl2 implements OrderService {
    public ResponseCode doOrder(RequestCode requestCode) {
        System.out.println("OrderServiceImpl2  ..曾经来过");
        ResponseCode responseCode=new ResponseCode();
        responseCode.setCode(222222222);
        responseCode.setId("1234567890");
        responseCode.setMsg("访问成功!");
        return responseCode;
    }

    public ResponseCode cancelOrder(RequestCode requestCode) {
        System.out.println("OrderServiceImpl2 ..cancelOrder 取消订单 曾经来过");
        ResponseCode responseCode=new ResponseCode();
        responseCode.setCode(10004);
        responseCode.setId("999999999");
        responseCode.setMsg("OrderServiceImpl2 取消订单访问成功!");
        return responseCode;
    }
}
